<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>v
    <textarea name="" id="" cols="30" rows="10"></textarea>
    <botton>发布</botton>

    <ul></ul>
    <script>
        //点击发布按钮
        var btn = document.querySelector('button')
        var text= document.querySelector('textarea')
        var ul = document.querySelector('ul')
        btn.onclick=function(){

            //新增标签
            var li = document.createElement('li')
            //获取文本框内容
            //li.innerText=text.value
        }
    </script>



</body>
</html>